package com.feign.study.controller;

import com.feign.study.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * created by YDW
 */
@RestController
public class FeignController {

    @Autowired
    FeignService feignService;

    @GetMapping
    public String sayHi(@RequestParam(value = "name") String name){
        return  feignService.hello(name);
    }
}
